package com.wenall.ioc;

import com.wenall.ioc.bean.UserServiceImpl;
import com.wenall.ioc.config.Config;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author liuhaowen@sanyygp.com
 * @version 1.0
 * @description
 * @date 2022/10/23 11:36
 */
public class TestStartMain {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
		UserServiceImpl userServiceImpl = context.getBean(UserServiceImpl.class);
		userServiceImpl.say();
	}
}
